{layout name="layout/food" /}
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">排队设置</div>
                    </div>
                    <div class="widget-body">
                        <fieldset>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">功能状态 </label>
                                <div class="am-u-sm-9 am-u-end">
                                	<label class="am-radio-inline">
                                        <input type="radio" name="data[is_open]" value="0" data-am-ucheck
                                            {$model['is_open'] == 0 ? 'checked' : ''} required>
                                        关闭
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[is_open]" value="1" data-am-ucheck
                                            {$model['is_open'] == 1 ? 'checked' : ''} required>
                                        开启
                                    </label>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">是否打印 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[is_print]" value="0" data-am-ucheck
                                            {$model['is_print'] == 0 ? 'checked' : ''} required>
                                        关闭
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[is_print]" value="1" data-am-ucheck
                                            {$model['is_print'] == 1 ? 'checked' : ''} required>
                                        开启
                                    </label>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">语音叫号 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[is_call]" value="0" data-am-ucheck
                                            {$model['is_call'] == 0 ? 'checked' : ''} required>
                                        关闭
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[is_call]" value="1" data-am-ucheck
                                            {$model['is_call'] == 1 ? 'checked' : ''} required>
                                        开启
                                    </label>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">排队距离限制</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="number" class="tpl-form-input" name="data[range]"
                                    value="{$model['range']}" required>
                                    <small>单位米，如设置为50，则在当前门店50米范围内的用户可进行排队。设置为0不限制距离。</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-2 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $('#my-form').formPost();
    });
</script>
